<?php

/*
    Desktopd Picture Server default configuration file
    Copy this file to LocalSettings.php and *EDIT THE COPY* as needed
    
    Admins: please do NOT edit this file as it will be overwritten!
*/


/*
    Desktopd information
*/
$desktopdProductName = 'Desktopd (Picture Server)';
$desktopdVersion = '2.0';


/*
    Picture Server settings
*/

/* Default directories */
$pictureServerHTTPSEverywhereRulesetDirectory = dirname(__DIR__) . '/https-everywhere/https-everywhere/src/chrome/content/rules';

$pictureServerHTTPSEverywhereUserRulesetDirectory = dirname(__DIR__) . '/https-everywhere/HTTPSEverywhereUserRules';

$pictureServerPictureDirectory = __DIR__ . '/docroot/pictures';


// maximum cache entries (in PictureDirectory)
$pictureServerPictureDirectoryMaxStoredPictures = 50;


$pictureServerErrorsToAbort = E_ALL & ~ E_USER_NOTICE;


/* Wikimedia Commons */
$pictureServerWikimediaCommonsFeedURIs = array(
     'https://tools.wmflabs.org/catfood/catfood.php?category=Featured+pictures+on+Wikimedia+Commons',
    'https://commons.wikimedia.org/w/api.php?action=featuredfeed&feed=potd&feedformat=atom&language=en',
);

// This SHOULD be true when not being debugged
$pictureServerWikimediaCommonsSleepFirst = true;

$pictureServerWikimediaCommonsMaxLoop = -1; // -1 -> loop forever
$pictureServerWikimediaCommonsMeanSleep = 3600 * 24; // in seconds


/*
    Load local settings
*/

if (file_exists(__DIR__ . '/LocalSettings.php')) {
    require_once __DIR__ . '/LocalSettings.php';
}


// vim: ts=4 et ai

